<?php $this->Html->LoadCss("area-admin");  ?>
<?php 
$linka = $this->Html->getLink('admin/');
$linkb = $this->Html->getLink('admin/recurso/');
$this->Html->LoadCss("area-admin");  

?>
<a href="<?php echo $linka; ?>">Home</a> > 
<a href="<?php echo $linkb; ?>">Todos os recursos</a> > 
<?php echo $recname; ?>
<br/><hr/><br/>

<h1><?php echo $recname; ?></h1>

<?php 
if(!empty($resources)){ 
?>
<div class="painel-item">
    <div class="painel-item-titulo">
        <h2>Sub Recursos</h2>
        <span class="painel-item-desc">Visualização de todos os subrecursos do recurso atual</span>
    </div>

    <div class="painel-item-conteudo">
        <?php
        foreach($resources as $name => $var){ 
            $link = $this->Html->getLink(CURRENT_MODULE . "/". CURRENT_CONTROLLER."/showrec/".$var);
        ?>
            <div class="link"><a href="<?php echo $link; ?>"><?php echo ucfirst($name); ?></a></div>
        <?php }?>
    </div>
</div>
<?php } if(!empty($recjsplugin)){ ?>
<div class="painel-item">
    <div class="painel-item-titulo">
        <?php $link = $this->Html->getLink("admin/documentacao/cat/show/3/recursos"); ?>
        <h2>Js Plugins</h2>
        <span class="painel-item-desc">Todos os JsPlugins deste recurso.</span>
    </div>

    <div class="painel-item-conteudo">
        <?php
        foreach($recjsplugin as $name => $var){ 
            $link = $this->Html->getLink(CURRENT_MODULE . "/". CURRENT_CONTROLLER."/showjs/".$var);
        ?>
            <div class="link"><a href="<?php echo $link; ?>"><?php echo ucfirst($name); ?></a></div>
        <?php }?>
    </div>
</div>
<?php } ?>
